'use strict';

var Oriento = require('oriento');
var server = Oriento({ 
  host: 'localhost', 
  port: 2424, 
  username: 'root', 
  password: 'ldj123' });

var db = server.use({ 
  name: 'weather', 
  username: 'root', 
  password: 'admin' });


exports.orientotest = orientotest;
function orientotest() {
  var aa = null;
  var ee = require('../controller/testAction');
  db.query('select * from TODAYWEATHER').then(function (results) {
    console.log("----------zheshi--sss---------------", results);
    //callback(JSON.stringify(results));
    ee.testAction(results);});

  console.log("''''''''''''''''''results'''''111'''''''''''''", aa);
  return aa;}


/*exports.odata = odata;
function odata(data){
  console.log("''''''''''''''''aaaa''data''''''''''''''''''",data);
  return data;
}*/